# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-lzlib
pkgver=0.0.2
pkgrel=0
pkgdesc="Guile bindings for lzlib"
url="https://notabug.org/guile-lzlib/guile-lzlib"
arch="all"
license="GPL-3.0-or-later"
depends="guile lzlib-dev"
makedepends="autoconf automake guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="$pkgname-$pkgver.tar.gz::https://notabug.org/guile-lzlib/guile-lzlib/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1cede0d0194b2a8839979600ce680850e6cc2405912dcc84265b1f920c4069e94a85e79de3d61e5e7ccabc8ad8719d3759e28b45c16e70cc7c696af40e09cf1a  guile-lzlib-0.0.2.tar.gz
"
